<?php
include 'config.php';
?>

<html>
  <head>
    <script src="http://maps.google.com/maps?file=api&v=2&key=<?php echo GOOGLE_MAPS_KEY; ?>" 
            type="text/javascript"> </script>
    <script type="text/javascript">
      function onLoad() {
        map = new GMap2(document.getElementById("map"));
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());
        var lat     = <?php echo $_REQUEST['lat']; ?>;
        var lng     = <?php echo $_REQUEST['lng']; ?>;
        var scale   = 14;
        var center  = new GLatLng(lat,lng);
        map.setCenter(center,scale);
        map.addOverlay(new GMarker(center));
      }
    </script>
  </head>
  <body onLoad="onLoad();return false;">
    <div id="map" style="width:100%; height:100%"></div>
  </body>
</html>
